<%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" MasterPageFile="hubs.Master" Inherits="CommunityServer.Hubs.Controls.CSHubThemePage" %>

<asp:Content ContentPlaceHolderID="tr" runat="server">
    <CSControl:Title runat="server" ResourceName="Hubs_GroupCreate" IncludeSiteName="true" EnableRendering="true" Tag="H1" CssClass="CommonTitle" />
</asp:Content>

<asp:Content ContentPlaceHolderID="bcr" runat="server">

    <div class="CommonContentBox">
        <div class="CommonContentBoxContent">
	 
            <CSHub:CreateHubForm runat="server" 
                CreateButtonId="Create" 
                HubTypeRadioButtonListId="HubType" 
                GroupDropDownListId="HubGroup" 
                NameTextBoxId="HubName"
                CustomValidatorId="CustomValidator"
                DescriptionEditorId="HubDescription"
                >
                <SuccessActions>
                    <CSControl:GoToCurrentSectionAction runat="server" />        
                </SuccessActions>
                <FormTemplate>
                    <div class="CommonFormArea">
                        <asp:CustomValidator runat="server" ID="CustomValidator" />
                
                        <CSControl:FormLabel runat="server" LabelForId="HubName" ResourceName="Name" CssClass="CommonFormFieldName" />    
                        <div class="CommonFormFieldDescription"><CSControl:ResourceControl runat="server" ResourceName="Hubs_Name_SubTitle" /></div>
                        <div class="CommonFormField"><asp:TextBox runat="server" ID="HubName" Columns="40" /> <asp:RequiredFieldValidator runat="server" ControlToValidate="HubName" Cssclass="validationWarning">*</asp:RequiredFieldValidator></div>
                    
                        <CSControl:FormLabel ResourceName="Description" LabelForId="HubDescription" CssClass="CommonFormFieldName" runat="server" />
                        <div class="CommonFormField"><CSControl:Editor runat="server" ID="HubDescription" Height="150px" /></div>

                        <CSControl:FormLabel runat="server" LabelForId="HubType" ResourceName="Hubs_Type" CssClass="CommonFormFieldName" />
                        <div class="CommonFormFieldDescription"><CSControl:ResourceControl runat="server" ResourceName="Hubs_PublicPrivate" /> <asp:RequiredFieldValidator runat="server" ControlToValidate="HubType" Cssclass="validationWarning">*</asp:RequiredFieldValidator></div>
                        <div class="CommonFormField"><asp:RadioButtonList runat="server" ID="HubType" /></div>
                        
                        <CSControl:PlaceHolder runat="server">
                            <DisplayConditions><CSControl:ControlPropertyValueComparison ComparisonControlId="HubGroup" ComparisonProperty="Items" Operator="GreaterThan" ComparisonValue="1" runat="server" /></DisplayConditions>
                            <ContentTemplate>
                                <CSControl:FormLabel runat="server" LabelForId="HubGroup" ResourceName="Hubs_Group" CssClass="CommonFormFieldName" />            
                                <div class="CommonFormFieldDescription"><CSControl:ResourceControl runat="server" ResourceName="Hubs_SelectCategory" /></div>
                                <div class="CommonFormField"><asp:DropDownList runat="Server" ID="HubGroup" /></div>
                            </ContentTemplate>
                        </CSControl:PlaceHolder>
                        
                        <div class="CommonFormFieldName">
                            <asp:Button ID="Create" runat="server" Text="Create" />     
                        </div>
                    </div>
                </FormTemplate>
            </CSHub:CreateHubForm>
            
        </div>
    </div> 
       
</asp:Content>
